From: Roan Kattouw Date: Fri, 4 Aug 2017 23:44:49 +0000 (-0700) Subject: Set a min and max on the rclimit preference X-Git-Tag: 1.31.0-rc.0~2463^2 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=c2d427d370e22160a78c5052a2a39d7f51519af5;p=lhc%2Fweb%2Fwiklou.git Set a min and max on the rclimit preference The same values as wllimit. Change-Id: I1fbc063455799f7d886d26c7030662f431feb627 --- diff --git a/includes/Preferences.php b/includes/Preferences.php index de6d6813d7..15ed2d4424 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -901,6 +901,8 @@ class Preferences { ]; $defaultPreferences['rclimit'] = [ 'type' => 'int', + 'min' => 0, + 'max' => 1000, 'label-message' => 'recentchangescount', 'help-message' => 'prefs-help-recentchangescount', 'section' => 'rc/displayrc',